<template>
	<view class="container">
		<view style="height: 1rpx;">
			
		</view>
		<view v-if="list.length <= 0" style="text-align: center;margin-top: 20rpx;">
			暂无数据
		</view>
		<view class="list" v-else>
			<view class="item" v-for="(item,index) in list" :key="index">
				<view class="time">
					{{item.createtime}}
				</view>
				<view class="info">
					<view class="left">
						<view class="name">
							{{item.describe}}
						</view>
						<view class="from">
							来自：{{item.mobile}}
						</view>
					</view>
					<view class="right">
						+{{item.money}}
					</view>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	import {getBrokerageList} from '@/api/api.js'
	export default {
		data() {
			return {
				list:[],
			}
		},
		onShow() {
			this.getShopList()
		},
		
		methods: {
			getShopList(){
				getBrokerageList().then(res=>{
					this.list = res.data.data
				})
			},
		}
	}
</script>

<style scoped lang="scss">
.container {
	min-height: 100vh;
	background-color: #F8F8F8;
	padding: 0 24rpx;
}
.item {
	width: 100%;
	margin-top: 20rpx;
	padding: 0 32rpx;
	background-color: #fff;
	.time {
		font-size: 28rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #D1D2D5;
		line-height: 80rpx;
		height: 80rpx;
		border-bottom: 1px solid #F0F0F0;
	}
	.info {
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 30rpx;
		font-family: PingFangSC-Medium, PingFang SC;
		.name {
			margin-top: 22rpx;
		}
		.from {
			margin: 22rpx 0 26rpx;
		}
		.right {
			font-weight: 500;
			color: #FA2C1E;
		}
	}
}
</style>
